in the very introductory tutorial of machine learning(https://pythonprogramming.net/regression-introduction-machine-learning-tutorial/), im getting the error 'Cannot compare type 'Timestamp' with type 'str'' on the line: df['PCT_change'] = (df['Adj. Close'] - df['Adj. Open']) / df['Adj. Open'] * 100.0 what should i do resolve it?
You must be logged in to post. Please login or register an account.
I ran into a similar issue as tejaswagh. Checked the comments under the video. Anyone else running into a similar error, try making your completed example look like this: